import 'dart:math';

import 'package:happy_study/core/constant/name.dart';

String getRandomNum() {
  var nowTime = DateTime.now();
  return "${nowTime.year}${nowTime.month}"
      "${nowTime.day}${nowTime.hour}"
      "${nowTime.minute}${nowTime.minute}"
      "${nowTime.second}${nowTime.millisecond}"
      "${Random.secure().nextInt(1000)}";
}

String getRandomStudentName() {
  return firstName[Random.secure().nextInt(firstName.length)] +
      secondName[Random.secure().nextInt(secondName.length)];
}
